package month4.day5.xingzuang;

public class Circle extends Graph{
    private final double pi=3.14;
    private double r;

    public Circle(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public double c(){
        return 2*r*pi;
    }
    public double s(){
        return r*r*pi;
    }

}
